package thirteen;

public class Demo01 {
    public static void main(String[] args) {
//        A a = new A();
        System.out.println(B.width);
    }
}

class B extends A {
    static {
        System.out.println("静态初始化B");
    }
}

class A extends A_Father{
    public static int width = 100;

    static {
        System.out.println("静态初始化类A");
        width = 300;
    }
    public A(){
        System.out.println("创建A类的对象");
    }
}

class A_Father {
    static {
        System.out.println("静态初始化A_Father");
    }

    public A_Father(){
        System.out.println("创建Father类的对象");
    }
}